<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="./dist/css/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap-theme.min.css">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>

<head>
    <!-- 引入 Bootstrap -->
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
    <!-- Bootstrap core CSS -->
    <link href="dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="navbar.css" rel="stylesheet">

</head>


<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2016/11/24
 * Time: 23:31
 */
require("picprint.php");
require("Include/conn.php");
global $link;
$pic_id = $_GET["picid"];
$sql = "SELECT * FROM `pw_pic` WHERE `pic_id`=$pic_id";
$pic_click=mysqli_fetch_array(mysqli_query($link,$sql))['pic_click'];

$sql = "UPDATE `pw_pic` SET `pic_click`=$pic_click+1 WHERE `pic_id`=$pic_id";
$result = mysqli_query($link,$sql);

echo "<body background=\"img/bg.png\">";
echo "<div class=\"row\" align='center'>";
singlepic($pic_id);
echo "</div>";
echo "</body>";